package com.hyfrogx.modules.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyfrogx.modules.sign.entity.IntegralConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @version 1.0.0
 * @Author: lfh
 * @Date: 2019/10/23 9:48
 * @Company 汉咏科技
 */
@Mapper
public interface IntegralConfigDao extends BaseMapper<IntegralConfig> {

    IntegralConfig getByConfig(IntegralConfig config);

    /**
     * 根据积分来源类型获取定价
     * @param type
     * @return IntegralConfig
     */
    IntegralConfig getObjectByType(@Param("type") Integer type);


    void updateGrade(@Param("items") List<IntegralConfig> meetPricesList);


    List<IntegralConfig> getSignIconList() ;
}
